import request from '@/utils/request';

// 获取楼栋信息
export const getBuildingsList = () =>
  request({
    url: '/admin/buildings/list'
  });

// 管理卡发卡记录
export const AddAdminCard = (data:any) =>
  request({
    method: "POST",
    url: '/admin/logManageCard/checkin',
    data
  });
  export const AddTimer = () =>
  request({
    url: '/admin/card/expire/list',
  });


  interface LostTimer{
    CardType:string|boolean
  }

  export const LostTimer = (data:LostTimer) =>
  request({
    method:"POST",
    url: `/admin/card/loss/expire/${data.CardType}`
  });












